package com.itany.book.controller;

import com.itany.book.pojo.Supplier;
import com.itany.book.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Author:yaozhiyuan0117@163.com
 * Time:2019/12/25 20:06
 * Describe:
 * version:1.0
 */

@Controller
@RequestMapping("/supplier")
public class SupplierController {

    @Autowired
    SupplierService supplierService;

    @RequestMapping("/findAll")
    @ResponseBody
    public List<Supplier> findAll(){
        return supplierService.findAll();
    }
}
